home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / pyshared / GdmGreeter / utils.py < prev   
Encoding:
Python Source  |  2013-01-10  |  121 b   |  5 lines

  1. def unicode_to_utf8(string):
  2.     if isinstance(string, unicode):
  3.         return string.encode('utf-8')
  4.     return string
  5.